package com.rency.mtds.manager.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.rency.halo.framework.web.result.ApiResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: caiyu.ren
 * Created on 2019/9/6 20:17
 * @version: V1.0.0
 * @since JDK 11
 */
@Api(value = "首页", tags = {"首页"})
@RestController
@RequestMapping("/home")
public class HomeController {

    @ApiOperation(value = "Welcome", httpMethod = "GET")
    @GetMapping(value = "/welcome")
    ApiResult<String> welcome(){
        return ApiResult.<String>builder().success(true).code("200").message("Welcome to use Halo Framework Mulit DataSource Service").build();
    }
}
